<?php

declare (strict_types=1);
/**
 * @copyright 深圳市易果网络科技有限公司
 * @version 1.0.0
 * @link https://dayiguo.com
 */

namespace App\Request\User\User;

use App\Request\RequestAbstract;

/**
 * class
 *
 * @author 张昊(2396675557@qq.com)
 * @package App\Request\User\User
 */
class UserPayPasswordRequest extends RequestAbstract
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'password' => ['required', 'alpha_dash', 'between:6,30', 'confirmed'],
            'password_confirmation' => 'required'
        ];
    }
}